/* 主布局样式 */
.main-layout {
  min-height: 100vh;
}

/* 侧边栏样式 */
.main-sider {
  background: linear-gradient(135deg, #ddc6ff 0%, #a3dbff 60%, #4086cc 100%);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  position: relative;
}

.main-sider .ant-layout-sider-trigger {
  background: #002140;
  color: #fff;
  border-top: 1px solid #1890ff;
}

/* Logo区域 */
.logo {
  display: flex;
  align-items: center;
  padding: 16px;
  margin: 16px 0;
  background: linear-gradient(135deg, #a3a0fb 0%, #5b558b 100%);
  border-radius: 8px;
  margin-left: 16px;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.logo-icon {
  font-size: 32px;
  margin-right: 12px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.logo-text h2 {
  color: #fff;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.logo-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 12px;
  line-height: 1;
}

/* 菜单样式 */
.main-menu {
  background: transparent;
  border-right: none;
  padding: 0; 
}

.main-menu .ant-menu-item {
  color: #fff;
  background: #7681f8;
  margin: 0 16px 0 16px;
  border-radius: 0; /* 移除圆角 */
  height: 50px;
  line-height: 50px; 
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

/* 移除最后一个菜单项的分隔线 */
.main-menu .ant-menu-item:last-child {
  border-bottom: none;
}

/* 增强悬浮效果 */
.main-menu .ant-menu-item:hover {
  background: #c5a3f5;
  color: #fff;
  border: none;
  border-radius: 0;
  
  /* 增强上浮效果 */
  transform: translateY(-5px);
  
  /* 增强多层发光阴影效果 */
  box-shadow: 
    0 0 10px 3px #b0bcf9, 
    0 0 20px 6px rgb(199, 192, 222),
    0 0 20px 6px #e7e6f3;
  
  /* 添加伪元素增强发光效果 */
  position: relative;
  z-index: 2;
}

/* 使用伪元素创建发光层 */
.main-menu .ant-menu-item:hover::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, 
    rgba(67, 233, 187, 0.3) 0%, 
    rgba(24, 144, 255, 0.2) 60%, 
    rgba(0, 51, 102, 0.1) 100%);
  filter: blur(10px);
  z-index: -1;
  border-radius: 2px;
  opacity: 0.8;
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.9;
  }
}

/* 悬停时图标效果增强 */
.main-menu .ant-menu-item:hover .anticon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 选中项样式 */
.main-menu .ant-menu-item-selected {
  background: linear-gradient(90deg, #837ff8 0%, #4e497e 100%);
  color: #fff;
  font-weight: 500;
  /* 修改后的阴影：左右双向扩散，增大扩散半径 */
  box-shadow: 
    -15px 0 25px -5px #7b77fc, /* 左侧阴影 */
    15px 0 25px -5px #7b77fc;  /* 右侧阴影 */
  position: relative;
  z-index: 3;
}

.main-menu .ant-menu-item-selected::after {
  display: none;
}

.main-menu .ant-menu-item .anticon {
  font-size: 16px;
  margin-right: 12px;
}

/* 内容区域样式 */
.site-layout {
  background: linear-gradient(135deg, #43a1ff 0%, #ffd6ec 50%, #3a6cff 100%);
  position: relative;
}

.site-layout-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
}

/* 用户信息容器 */
.user-info-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* 确保在最上层 */
  min-width: 220px;
  min-height: 80px;
  
}

.user-dropdown .ant-dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffd6ec 0%, #fffbe6 100%);
  backdrop-filter: blur(10px);
}

.user-dropdown .ant-dropdown-menu-item {
  padding: 8px 16px;
}

.user-dropdown .ant-dropdown-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #7681f8;
  
}

.user-info:hover {
  background: linear-gradient(90deg, #f2f2f7 0%, #b39ddb 100%);
}

.user-info .ant-avatar {
  margin-right: 8px;
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
}

.username {
  color: #fff;
  font-weight: 500;
  margin-left: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-info-container {
    right: 16px;
    top: 12px;
  }
  
  .username {
    display: none;
  }
  
  .content-area {
    padding: 16px;
    padding-top: 60px;
  }
}

@media (max-width: 576px) {
  .logo {
    margin-left: 12px;
    margin-right: 12px;
  }
  
  .main-menu .ant-menu-item {
    margin: 4px 12px;
  }
  
  .content-area {
    padding: 12px;
    padding-top: 50px;
  }
}

/* 折叠状态下的样式调整 */
.ant-layout-sider-collapsed .logo {
  padding: 16px 8px;
}

.ant-layout-sider-collapsed .logo-text {
  display: none;
}

.ant-layout-sider-collapsed .main-menu .ant-menu-item {
  margin: 4px 8px;
  text-align: center;
}

/* 滚动条样式 */
.site-layout-content::-webkit-scrollbar {
  width: 6px;
}

.site-layout-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.site-layout-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.site-layout-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 导航栏图标颜色 */
.icon-home {
    color: #fa8989;
}

.icon-blue {
    color: #f2bf82;
}

.icon-green {
    color: #f1f573;
}

.icon-orange {
    color: #97f984;
}

.icon-purple {
    color: #72ecf8;
}

/* 新增粒子背景样式 */
.particle-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 15s infinite linear;
}

/* 粒子浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* 确保内容在粒子之上 */
.site-layout-content {
  position: relative;
  z-index: 1;
}